package cn.lyq.card.ui.device

import cn.lyq.card.base.SimpleVM


class DeviceVM : SimpleVM() {

    fun getList() = simpleEmit {
        repository.homeService.getGoods()
    }

    fun getDetail(id: Int) = simpleEmit {
        repository.homeService.getGoodsDetails(id)
    }

}